package homework;

import java.io.*;

public class Test09 {
    public static void main(String[] args) throws IOException {
        File dir=new File("./src/main/java/io");
        File[]subs=dir.listFiles(f->f.getName().endsWith(".java"));
        for (File sub:subs){
            FileInputStream fis=new FileInputStream(sub);
            InputStreamReader isr=new InputStreamReader(fis);
            BufferedReader br=new BufferedReader(isr);
            String line;
            while ((line = br.readLine()) != null) {
                System.out.println(line);
            }
            br.close();
        }
    }
}
